<h2 class="title3" style="width: 95%">
	编辑常见问题	
</h2>



<% form_tag("/content/up_faquestion", :method => :post, :name => "postform") do %>
		<p>
			<label for="new_faquestion" style="font-size: 14px">标题：</label>
			<%= text_field :faquestion, :title, :class => "text",:style => "width:45%" %>
		</p>
		<p>
			<label for="new_title" style="font-size: 14px">分类：</label>
			<% FaqCategory.all.each do |category|  %>
	      <%= category.name %><%= check_box_tag "categories[]" ,category.id, @faquestion.category_ids.include?(category.id), :class => "text" %>
			<% end %>
		</p>
		
		 <%= hidden_field_tag :id, @faquestion.id %>
		<%= render :partial => "share/post_content", :locals => {:post => @faquestion} %>
	<br/>
     <%= submit_tag "保存", :class => "submit" %>

<% end %>

<%= render :partial => "share/upload_file" %>
